<template>
  <!-- 匿名插槽，默认插槽 -->
  <slot></slot>
  <hr />
  <!-- 具体插槽 -->
  <slot name="main"></slot>
  <!-- 具体插槽 -->
  <slot name="footer"></slot>
  <!-- 作用域插槽 -->
  <slot name="scope" v-bind:user="user"></slot>
</template>
<script setup>
import { ref } from 'vue'
const user = ref({
  id: 123,
  name: 'admin',
})
</script>
<style></style>
